﻿using AssetManageSystem.Model.Enum;
using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace AssetManageSystem.Model.DictionaryManage
{
    public class DataDictionary : TopBasePoco
    {
        /// <summary>
        /// 字典值
        /// </summary>
        [Display(Name = "字典值")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public int? DicValue { get; set; }
        /// <summary>
        /// 字典编码
        /// </summary>
        [Display(Name = "字典编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(10, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string DicCode { get; set; }
        /// <summary>
        /// 字典类型
        /// </summary>
        [Display(Name = "字典类型")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public Guid? DicTypeId { get; set; }
        [Display(Name = "字典类型")]
        public DictionaryType DicType { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public CommonStatus Status { get; set; }
    }
}
